package com.sm.li.common.http;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@Getter
@AllArgsConstructor
public enum AxiosStatus {


    OK(20000,"操作成功"),
    ERROR(50000,"操作失败"),
    FORM_VALID_ERROR(50001,"表单校验失败"),
    ADMIN_EXIST(50002,"员工已存在"),
    NOT_IMG(50003,"不是图片"),
    IMG_TYPE_ERROR(50004,"图片格式不正确"),
    IMG_TOO_LARGE(50005,"图片太大"),
    IMG_SIZE_ERROR(50006,"图片尺寸不正确"),
    UPLOAD_ERROR(50007,"图片上传失败"),
    UNKNOWN_ERROR(50008,"服务器错误"),
    NO_LOGIN(50009,"未登录"),
    NO_PERMISSION(50010,"无权限"),
    ;

    private int status;
    private String message;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
